package top.korori.sv.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 
 * 短视频前台用户
 * 
 *
 * @author korori
 * @since 2024-12-17
 */
@Getter
@Setter
@TableName("sv_user")
@ApiModel(value = "SvUser对象", description = "短视频前台用户")
public class SvUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("所在地省份id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别(-1未设置, 0 男 1 女 2 保密)")
    private Integer sex;

    @ApiModelProperty("出生日期")
    private LocalDate birthday;

    @ApiModelProperty("简介")
    private String intro;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("ip地址")
    private String ip;

    @ApiModelProperty("物理地址")
    private String ipProvince;

    @ApiModelProperty("状态（0 正常 1 封禁）")
    private Long status;

    @ApiModelProperty("所在地城市id")
    private Integer placeCityId;

    @ApiModelProperty("所在地省份id")
    private Integer placeProvinceId;

    @ApiModelProperty("关注数量")
    private Long followNum;

    @ApiModelProperty("粉丝数量")
    private Long fansNum;

    @ApiModelProperty("获得浏览数量")
    private Long browseNum;

    @ApiModelProperty("获得点赞数量")
    private Long likeNum;

    @ApiModelProperty("获得收藏数量")
    private Long starNum;

    @ApiModelProperty("获得分享数量")
    private Long shareNum;

    @ApiModelProperty("获得评论数量")
    private Long commentNum;

    @ApiModelProperty("是否删除")
    private Integer isDel;
}
